<script lang='ts' setup name='App'>
import { ref } from "vue";
//vue3 直接引入就可以使用（局部组件）
import MyInput from "@/components/MyInput.vue";



const username = ref('admin')

</script>

<template>
     用户名:  <MyInput :username="username"></MyInput>
</template>

<style scoped></style>